package com.example.response;

/**
 *
 * @author JokerJodas
 * @date 2018.6.11
 *
 *  */
public enum CommResponseEnum implements IResponseEnum {
    FAILURE(-1, "系统错误"),
    SUCCESS(200, "操作成功"),
    FAILURE1(100,"操作失败");

    private int respcode;
    private String respmsg;

    CommResponseEnum(int respcode, String respmsg) {
        this.respcode = respcode;
        this.respmsg = respmsg;
    }

    @Override
    public int code() {
        return this.respcode;
    }

    @Override
    public String msg() {
        return this.respmsg;
    }
}
